{include file="public/header" title="动态_米醋儿"}

{if request()->controller() == 'Index'  && request()->action() == 'index'}

{include file="public/banner"}

{/if}
<link rel="stylesheet" href="{:config('web.cdn')}/static/css/dongtai.css">
<style>
    h1{
        color: #999;
        margin: 25px 0 0 46px;
        padding-top: 20px;
    }
</style>
<!--开始-->
<div class="layui-container    layui-row">
    <div class="content whisper-content">
        <div class="cont">
            <div class="whisper-list">
                {volist name="temp"  id="v"}
                <div class="item-box">
                    <h1>
                        <a href="{:url('Article/read',['id'=>$v.id])}">
                            {$v.title}
                        </a>
                    </h1>
                    <div class="item">
                        <div class="whisper-title">
                            <i class="layui-icon layui-icon-date"></i>

                            <span>
                                发布者:
                                <a target="_blank" href="{:url('u/index',['id'=>$v.uid])}">
                                    {$v.author}
                                </a>

                            </span>
                            -
                            <span class="hour">{$v.add_time}</span>
                        </div>

                        <p class="text-cont">
                            <a href="{:url('Article/read',['id'=>$v.id])}">
                            {:htmlspecialchars_decode($v.info)}
                            </a>
                        </p>
                        <div class="img-box">
                            {if is_array($v.imgs)}
                                {foreach $v.imgs as $img}
                                    <a href="{$img}" target="_blank">
                                        <img src='{:img_thumber($img,600,400)}'>
                                    </a>
                                {/foreach}
                            {else /}
                                <img src="{:config('web.cdn')}/static/tu/{:rand(1,9)}.jpg">
                            {/if}
                        </div>
                        <div class="op-list">
                            <p class="like">
                                <i class="layui-icon layui-icon-praise"></i><span>{$v.like}</span>
                            </p>
                            <p class="edit"><i class="layui-icon layui-icon-reply-fill"></i><span>{$v.comment}</span></p>
                            <!--<p class="off"><span>展开</span><i class="layui-icon layui-icon-down"></i></p>-->
                        </div>
                    </div>

                </div>
                {/volist}

            </div>

        </div>

    </div>

    <div class="pagepp">
        {$list|raw}
    </div>

</div>
<!--结束-->









{include file="public/footer"}

{if isset($keywords)}
{//如果是搜索则将关键词标红}
toRed("{$keywords}","page_left_list")
{/if}

<script type="text/javascript">
    layui.config({
        base: '../res/js/util/'
    }).use(['element','laypage','form','menu'],function(){
        element = layui.element,laypage = layui.laypage,form = layui.form,menu = layui.menu;
        laypage.render({
            elem: 'demo'
            ,count: 70 //数据总数，从服务端得到
        });
        menu.init();
        menu.off();
        menu.submit()
    })
</script>